function RogueG1zStar2()
	-- if isAoE == nil then AoEToggle() end
	if ccrPIIC() then
		glovescd, glovesdur, glovesenable = GetInventoryItemCooldown("Player", 10)
	end
	if ccrPIIC() and ccrValidTarget() then
		local deepinsightcpcheck = 5-ccrPoints()
		if timecd == nil then timecd = 0 end
		if useCDS and ccrTargetIsBoss() and SIR("Preparation") and not ccrPHB("Vanish") and SpellCDDuration("Vanish") > 60 then ccrCast("Preparation") return end
		if useCDS and ccrTargetIsBoss() and ccrPHB("Shadow Blades") and glovesenable == 1 and glovescd == 0 then UseInventoryItem(10) return end
		if SIR("Arcane Torrent") and useCDS and ccrTargetIsBoss() and ccrEnergy() < 60 then ccrCast("Arcane Torrent") return end
		if SIR("Blade Flurry") and ccRS.Manual_AoE and ccrPlayerCount(5) > 1 and not ccrPHB("Blade Flurry") then ccrCast("Blade Flurry") return end
		if SIR("Blade Flurry") and (isAoE == 0 or ccrPlayerCount(5) <= 1 ) and ccrPHB("Blade Flurry") then CancelUnitBuff("player","Blade Flurry") return end
		if SCA("Ambush") then ccrCastAttack("Ambush") return end
		if SIR("Vanish") and ccrTargetIsBoss() and ccrTargetName() ~= "Training Dummy" and ccrTargetName() ~= "Raider's Training Dummy" and ((ccrPoints() < 3 or not ccrPHBS("Anticipation",3) or (not ccrPHB("Shadow Blades") and not ccrPHBS("Anticipation", 4))) and (not ccrPHB("Adrenaline Rush") and ccrEnergy() < 20)) then ccrCast("Vanish") return end
		if SIR("Shadow Blades") and useCDS and ccrTargetIsBoss() then ccrCast("Shadow Blades") return end
		if SIR("Killing Spree") and useCDS and ccrTargetIsBoss() and ccrEnergy() < 45 then ccrCast("Killing Spree") return end
	 	if SIR("Adrenaline Rush") and useCDS and ccrTargetIsBoss() and (ccrPHB("Shadow Blades") or ccrEnergy() < 35) then ccrCast("Adrenaline Rush") return end
	 	if SIR("Slice and Dice") and (not ccrPHB("Slice and Dice") or ccrPHBR("Slice and Dice",2)) then ccrCast("Slice and Dice") return end
	 	if ccrPoints() < 5 or (not ccrPHBS("Anticipation",5) and not ccrTargetHasDebuff("Revealing Strike")) then
	 		if SCA("Fan of Knives") and ccrPlayerCount(10) >= 4 and GetTime()-timecd >= 5 then
	 			ccrCastAttack("Fan of Knives")
	 			timecd = GetTime()
	 			return
	 		end
	 		if SCA("Revealing Strike") and (not ccrTargetHasDebuff("Revealing Strike") or ccrTargetHasDebuffRemaining("Revealing Strike",4)) then ccrCastAttack("Revealing Strike") return end
	 		if SCA("Sinister Strike") then ccrCastAttack("Sinister Strike") return end
	 	end
	 	if ccrPHB("Deep Insight") or (SpellCDDuration("Shadow Blades") > 0 and SpellCDDuration("Shadow Blades") <= 11) or ccrPHBS("Anticipation", 4) or (ccrPHB("Shadow Blades") and ccrPHBS("Anticipation",3)) then
	 		if SCA("Rupture") and ccrTargetHasDebuffRemaining("Rupture", 4) and (not ccrPlayerCount(5) > 1 or not ccrPHB("Blade Flurry")) then ccrCastAttack("Rupture") return end
	 		if SCA("Crimson Tempest") and ccrPlayerCount(8) >= 7 and ccrTargetHasDebuffRemaining("Crimson Tempest", 4) then ccrCastAttack("Crimson Tempest") return end
	 		if SCA("Eviscerate") then ccrCastAttack("Eviscerate") return end
	 	end
	 	if ccrEnergy() > 60 or not ccrPHB("Deep Insight") or not ccrPHBR("Deep Insight",deepinsightcpcheck) then
	 		if SCA("Fan of Knives") and ccrPlayerCount(10) >= 4 and GetTime()-timecd >= 5 then
	 			ccrCastAttack("Fan of Knives")
	 			timecd = GetTime()
	 			return
	 		end
	 		if SCA("Revealing Strike") and (not ccrTargetHasDebuff("Revealing Strike") or ccrTargetHasDebuffRemaining("Revealing Strike",4)) then ccrCastAttack("Revealing Strike") return end
	 		if SCA("Sinister Strike") then ccrCastAttack("Sinister Strike") return end
		end
	end
end